package com.pan.seed;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 神奇的链表
 * 双向链表可以当做单项链表来用，不要去管pre即可
 * @author by panstark
 * @description
 * @notice
 * @date 2020/12/31
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Node<T> {

    public Node(T t) {
        this.t = t;
    }

    private T t;

    Node<T> next;

    Node<T> pre;


}
